package com.kaoshi.servefw.controller;

import com.kaoshi.common.config.Result;
import com.kaoshi.servefw.service.SourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/b/source")
public class SourceController {
    @Autowired
    private SourceService sourceService;
    @RequestMapping("/list")
    public Result getSource(){
        return Result.ok(sourceService.list());
    }
}
